package net.tycmc.cty.ctyms.timejob.iems.service;


import java.text.SimpleDateFormat;
import java.util.Date;
import net.tycmc.bulb.common.util.DateUtil;
import net.tycmc.cty.ctyms.timejob.iems.dao.VclCondayDAO;

public class VclCondayService {
	private VclCondayDAO vclCondayDAO;
	
	public void setVclCondayDAO(VclCondayDAO vclCondayDAO) {
		this.vclCondayDAO = vclCondayDAO;
	}
	public VclCondayService(){
		
	}
	public void startStatConOfVclToday() {
		System.out.println("开始进行今日设备运行情况统计作业..."+DateUtil.toString(DateUtil.now(), "yyyy-MM-dd HH:mm:ss"));		
		Date day = new Date();
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		this.vclCondayDAO.makeEngONRunKmOils(sdf.format(day));
		Date day1 = new Date();
		System.out.println("今日设备运行情况统计作业..."+DateUtil.toString(DateUtil.now(), "yyyy-MM-dd HH:mm:ss")+"结束");
		System.out.println("用时："+(day1.getTime()-day.getTime())/(1000)+" 秒");
	}
}
